<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/*Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

return [

];*/

Route::group('admin',function (){
     Route::rule('/','admin/index/login','GET|POST');
     Route::rule('register','admin/index/register','get|post');
     Route::rule('forget','admin/index/forget','get|post');
     Route::rule('reset','admin/index/reset','post');

     Route::rule('index','admin/home/index','get|post');
     Route::rule('loginout','admin/home/loginout','post');

     //栏目管理
     Route::rule('catelist','admin/cate/catelist','get');
     Route::rule('cateadd','admin/cate/cateadd','get|post');
     Route::rule('catesort','admin/cate/catesort','post');
     Route::rule('cateedit/[:id]','admin/cate/cateedit','get|post');
     Route::rule('catedel','admin/cate/catedel','post');

     //文章管理
     Route::rule('articlelist','admin/article/articlelist','get');
     Route::rule('articleadd','admin/article/articleadd','get|post');

});
